package com.gollum.system.domain.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gollum.jpa.domain.HertherBaseEnity;
import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.*;

import java.util.List;

import static javax.persistence.CascadeType.ALL;

/**
 * <pre>字典类型表 </pre>
 *
 * @author Herther
 * @version 1.0.0
 * @createTime 2022年08月11日 22:14:00
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@Accessors(chain=true)
@NoArgsConstructor
@Entity
@Table(name = "sys_dict_type")
public class SysDictType extends HertherBaseEnity {

    private static final long serialVersionUID = 1L;

    /** 字典名称 */
    @Column(name = "dict_name")
    private String dictName;

    /** 字典类型表排序 **/
    private String sort;

    /** 状态（0正常 1停用） */
    @Column(name = "status")
    private String status;

    @Column(name = "parent_id")
    private Long parentId;

}
